// @ts-nocheck
import VueRouter from "vue-router";
import Vue from 'vue'
// 组件导入
// @ts-ignore
import Home from '../components/Home/Home.vue'
import ipad from '../components/iPad/iPad.vue'
import iPhone from '../components/iPhone/iPhone.vue'
import Mac from '../components/Mac/Mac.vue'
import Music from '../components/Music/Music.vue'
import airpodspro from '../components/Music/GoodsShow/AirPods Pro/AirPodsDetails.vue'
import Shopping from '../components/Shopping/Shopping.vue'
Vue.use(VueRouter)

// 路由展示
var router =new VueRouter({
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'/home',
            component:Home
        },
        {
          path:'/ipad',
          component:ipad

        }
        ,
        {
            path:'/iPhone',
            component:iPhone
        },
        {
            path:'/mac',
            component:Mac
        },
        {
            path:'/music',
            component:Music,
        },
        {
            path:'/music/airpodspro',
            component:airpodspro,
        },
        {
            path:'/cn/shop/goto/product/MV7N2',
            component:Shopping
        }
    ],
    mode:'history'
})
export default router